package cn.com.zhbs.logic.login.service.impl;

import cn.com.zhbs.logic.login.dao.TestMapper;
import cn.com.zhbs.logic.login.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: vr_manage
 * @description: 测试切入多个事务是否成功
 * @author: 陈治杰
 * @create: 2021-07-28 16:23
 **/
@Service
public class TestServiceImpl implements TestService {
    @Resource
    TestMapper testMapper;
    @Override
    public void test() throws RuntimeException{
        testMapper.insertTest();
        throw new RuntimeException();
    }
}
